KDIR = /kf/kernel

obj-m = cpuload.o

build: app
	make CROSS_COMPILE=arm-cortex_a9-linux-gnueabi- -C $(KDIR) M=$(PWD) modules

app: main.cpp
	arm-cortex_a9-linux-gnueabi-g++ -Wall -o app $^

clean:
	rm -rf ./app
	make CROSS_COMPILE=arm-cortex_a9-linux-gnueabi- -C $(KDIR) M=$(PWD) clean
